import request from '@/utils/request'

// 查询分数线列表
export function listSchool_grade(query) {
  return request({
    url: '/school/school_grade/list',
    method: 'get',
    params: query
  })
}

// 查询分数线详细
export function getSchool_grade(gradeId) {
  return request({
    url: '/school/school_grade/' + gradeId,
    method: 'get'
  })
}

// 新增分数线
export function addSchool_grade(data) {
  return request({
    url: '/school/school_grade',
    method: 'post',
    data: data
  })
}

// 修改分数线
export function updateSchool_grade(data) {
  return request({
    url: '/school/school_grade',
    method: 'put',
    data: data
  })
}

// 删除分数线
export function delSchool_grade(gradeId) {
  return request({
    url: '/school/school_grade/' + gradeId,
    method: 'delete'
  })
}
